<template>
  <div class="groupchat">
    <div class="top">
			<span>
				<van-icon name="arrow-left"/>
			</span>
      <span>商家名</span>
      <div class="icon">
        <span><van-icon name="phone-o"/></span>
        <span><van-icon name="shop-o"/></span>
      </div>
    </div>
    <div class="xinxi">
      <div class="xinxi-shijian">
        <span>时间</span>
      </div>
      <div class="xinxi-shangjia">
        <div class="image">
          <img src="../assets/cate.png"/>
        </div>
        <div class="xinxi-text">
          <div>fadfadgadfgad</div>
        </div>
      </div>
    </div>
    <div class="bottom">
      <div>
        <van-field v-model="text" placeholder="输入信息"/>
        <el-button class="fasong">发送</el-button>
      </div>
      <div class="bottom-icon">
        <span><van-icon name="comment-o" :size="25"/></span>
        <span><van-icon name="add-o" :size="25"/></span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Groupchat",
  data() {
    return {
      text: ''
    }
  }
}
</script>

<style scoped>
.groupchat {
  background: #F2F2F2;
  display: flex;
  flex-direction: column;
  font-family: "楷体";
  font-weight: 550;
}

.top {
  width: 100%;
  background: #FFFFFF;
  height: 35px;
  position: fixed;
  top: 0;
  display: flex;
  justify-content: space-between;
  box-shadow: 0px 10px 10px -10px #999999;
}

.top span {
  margin-top: 10px;
}

.icon {
  margin-top: 10px;
}

.xinxi {
  margin-top: 35px;
  width: 100%;
}

.xinxi-shijian {
  margin-left: 45%;
}

.xinxi-text{
  width: 200px;
  background-color: white;
  border-radius: 5px;
}

.xinxi-text div{
  width: 200px;
}

.image {
  height: 15%;
  width: 15%;
  margin-left: 10px;
}

.xinxi-shangjia{
  display: flex;
  flex-direction: row;
}

.image img {
  border-radius: 50%;
}

.bottom {
  margin-top: 38%;
  display: flex;
  flex-direction: row;
  margin-bottom: 5px;
  height: 40px;

}

.bottom div:nth-of-type(1) {
  display: flex;
  flex-direction: row;
  width: 80%;
  border-radius: 30px 30px 30px 30px;
}

.fasong {
  margin-top: 5px;
  margin-right: 5px;
}

.bottom-icon span {
  margin-left: 10px;
}
</style>